<template>
	<view style="height: 100%;">
		<block v-if="signImage">
			<image :src="signImage" mode="widthFix" style="width: 50%;"></image>
		</block>
		
		<button type="primary" @tap="goSign()" style="position: fixed;bottom: 0;width: 100%;">去签字</button>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				signImage:''
			}
		},
		methods:{
			goSign(){
				uni.navigateTo({
					url:'/pages/sign/sign'
				})
				let _this = this;
				//监听事件
				_this.$eventHub.$on('fire', function(data) {
					_this.signImage=data;
					// console.log(_this.signImage)
					//清除监听
					_this.$eventHub.$off('fire')
				})
			}
		}
	}
</script>

<style>
</style>
